package com.bw.user.feign;

import com.bw.common.utils.R;
import com.bw.user.entity.to.CutRecordTo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName FeignBargainServer
 * @Author Hao_YunKai
 * @Date 2022/3/11 19:36
 */
@FeignClient("bargain")
public interface FeignBargainServer {
    // 添加砍价记录
    @RequestMapping("bargain/cutrecord/save")
    R save(@RequestBody CutRecordTo cutRecordTo);

    // 根据id查询砍价活动
    @RequestMapping("bargain/bargain-activity/info/{bargainId}")
    R info(@PathVariable("bargainId") Long bargainId);
}
